package com.qf.android.huihui.utils.retrofit;

import com.qf.android.huihui.utils.HHutil;

import retrofit.GsonConverterFactory;
import retrofit.Retrofit;
import retrofit.RxJavaCallAdapterFactory;

/**
 * Created by 韩爽 on 2017/1/6.
 */

public class RHttpClient {
    public static RHttpSevice getService() {
        Retrofit retrofit=new Retrofit.Builder()
                .baseUrl(HHutil.BASEURL)
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
                .build();
        RHttpSevice sevice = retrofit.create(RHttpSevice.class);
        return sevice;
    }

}
